package com.hzit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
	@TableId(type= IdType.AUTO)     // 主键自增，如果不写就是ASSIGN_ID，根据雪花算法生成的id
	private Long sid;
	private String sname;
	private String sex;
	private Integer age;
	private String addr;
	private Integer cid;
}
